package dsl.http

import dsl.groovy.DslDelegate
import groovy.transform.BaseScript

@BaseScript DslDelegate _

def res = http {
    url "__url"
    method "POST"
    params "arg1=123&arg2=456"
    data '''
        {
            "signMsg": "4a04b1a09c39bce3cddf6ee2c6b08b410481d66c773dba3b546e9a1bc12baf3c",
            "appName": "__appName",
            "modelName": "",
            "msg": "{\\"chargingNo\\":\\"xxxxxxxx\\"}",
            "charset": "utf-8",
            "timestamp": "2023-11-24 13:50:00"
        }
    '''
    times "__times"
}

println res
res